<?php
/*----------------------------------------------------------------------
 * 小帅酒店逻辑
----------------------------------------------------------------------*/

namespace Common\Logic;
use Think\Controller;
class XsHotelSyncLogic{
	/*获取酒店信息*/
	public function getHotel($params){
		$map['host_name'] = $params['host_name'];
		$info = M('xs_hotel')
				->field('id,host_name,hotel_name,status')
				->where($map)
				->find();
		if($info){
			$result['error_code'] = 0;
			$result['data'] = $info;
		}else{
			$result['error_code'] = 1;
			$result['data'] = '没有查询到酒店';
		}
        return $result;
	}
}
